package top.wshape1.shiziapi.gateway.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import top.wshape1.shiziapi.common.domain.to.UserTokenTo;
import top.wshape1.shiziapi.common.utils.R;

/**
 * @author Wshape1
 * @version 1.0
 * @description
 * @since 2023-08-24
 */

@FeignClient("shiziapi-uaa")
public interface UaaFeignService {

    @PostMapping("/token/renew")
    R<UserTokenTo> renewJwt(@RequestParam Long id, @RequestBody String oldToken);

}
